import {GET,POST,path} from './config';
import {request} from './core';

const network = {
    getList(params){
        return request(GET,path.list,params)
    },
    getBanner(){
        return request(GET,path.banner)
    },
    getBargain(){
        return request(GET,path.bargain)
    },
    getSpecial(){
        return request(GET,path.special)
    },
    getDetails(params){
        return request(POST,path.details,params)
    },
    getCategory(){
        return request(POST,path.category)
    }
}

export default network